<?php
$yhendus=new mysqli("localhost", "if13", "ifikad", "if13_normakro");
if(!empty($_REQUEST["kirjeldus"])){
$kask=$yhendus->prepare(
"INSERT INTO parandused(kirjeldus) VALUE(?)");
$kask->bind_param("s", $_REQUEST[kirjeldus]);
$kask->execute();
echo $yhendus->error;
header("Location: $_SERVER[PHP_SELF]");
$yhendus->close();
exit();
}
?>
<html>
<head>
<title>Tellimused</title>
</head>
<body>
<a href="logimine.php">Sisselogimine</a>
<form action="?">
<input type="hidden" name="uusleht" value="jah" />
<h2>Arvutiparandus</h2>
<dl>
	<dt>Kirjeldus:</dt>
	<dd>
	<textarea rows="20" name="kirjeldus" /></textarea>
	</dd>
	<input type="submit" value="sisesta" />
	</form>
	
</body>
<style>
h2
{
	font-size: 2em;
	text-decoration: underline;
}
dt
{
	font-style: oblique;
}
body
{
	background-color:lightblue;
	background-image: url(http://upload.wikimedia.org/wikipedia/commons/1/1a/Crystal_Project_computer.png);
	background-size: 200px;
	background-repeat: no-repeat;
	background-position: 300px 100px;
	background-attachment: fixed;
	
	
	
}
</style>
</html>
<?php
$yhendus->close();
?>
